package com.example.filecabinet.controller;

import com.example.filecabinet.constant.RecordConstant;
import com.example.filecabinet.entity.Record_info;
import com.example.filecabinet.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 操作记录控制器
 *
 * @author wangy
 */
@RestController
public class RecordController {

    @Autowired
    RecordService recordService;

    @RequestMapping("/saveRecord")
    public String saveRecord(@RequestBody Record_info recordInfo) {
        return recordService.insertSelective(recordInfo);
    }
}
